home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 14
/
CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
thor24_arexx.lha
/
Edge
/
Cool.edge
< prev
next >
Wrap
Text File
|
1996-11-11
|
909b
|
46 lines
/* Coolify (using "TEXT COOLER v1.0 by
** DDT of the HALF-BRAINS TEAM")
** text block - by Troels Walsted Hansen
** added Edge support - Kirk A. Hans
** Function: for now, it takes the text from the current line position to the
** end of the file and makes it "cool". Will added block support in
** the next version */
options results
getenvvar _WE_CursorY
currline = result
getenvvar _WE_CursorX
currcolumn = result
getenvvar _FE_Lines
lastline = result
call open(tfh, "t:UncoolTempFile", W)
do i=currline to lastline
'Position' LINE i
getenvvar _WE_CLine RAW
lin = result
if(lin~= "") then do
delete LINE
i = i-1
end
else break
call writech(tfh,lin)
end
call close(tfh)
address command "Cool >nil: t:UncoolTempFile t:CoolTempFile"
call delete("t:UncoolTempFile")
Position currcolumn currline
INCLUDE "t:CoolTempFile"
call delete("t:CoolTempFile")
Position currcolumn currline